<extend name="Public/base"/>

<block name="body">
<div id="main" class="myeach"><!--main-->
     <div class="maincon clearfix business">
      <div class="posi clearfix"><h1>你的位置是：<span>首页</span><span>网站设置</span></h1><p><a onclick="javascript:history.back(-1);return false;" href="javascript:"><strong><img src="__IMG__/left.jpg" width="11" height="10" /></strong>返回</a><a onclick="javascript:history.go(1);return false;" href="javascript:" class="fangxing">向前<strong><img src="__IMG__/right.jpg" width="12" height="11" /></strong></a></p></div>
      <h1 class="operate">
	      <span>
		      <a id="export" class="btn" href="javascript:;" autocomplete="off">立即备份</a>
	      </span>
	      <span>
		      <a id="optimize" class="btn" href="{:U('optimize')}">优化表</a>
	      </span>
	      <span>
		      <a id="repair" class="btn" href="{:U('repair')}">修复表</a>
	      </span>
      </h1>
      <table class="listTable">
       <tr class="trHead">
         <th><span><input type="checkbox" class="normalBox"></span>TD</th>
         <th>表名</th>
         <th width="120">数据量</th>
         <th width="120">数据大小</th>
         <th width="160">创建时间</th>
         <th width="160">备份状态</th>
         <th width="120">操作</th>
       </tr>
       <notempty name="list">
	   <volist name="list" id="table">
       <tr class="evenTr">
	       <th><span><input type="checkbox" class="normalBox"></span>1</th>
	       <td>{$table.name}</td>
           <td>{$table.rows}</td>
           <td>{$table.data_length|format_bytes}</td>
           <td>{$table.create_time}</td>
           <td class="info">未备份</td>
           <td class="action">
               <a class="ajax-get no-refresh td_green" href="{:U('optimize?tables='.$table['name'])}">优化表</a>&nbsp;
               <a class="ajax-get no-refresh td_green" href="{:U('repair?tables='.$table['name'])}">修复表</a>
           </td>
       </tr>
       </volist>
		<else/>
		<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
      </table>
        <div class="yue clearfix">
			{$_page}
		</div>
     </div>
   </div><!--main-->
</block>

<block name="script">
<script type="text/javascript">

</script>
</block>